<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2018/7/11
  Time: 11:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Home</title>
    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!-- Bootstrap Core CSS -->
    <link href="/static/css/bootstrap.css" rel='stylesheet' type='text/css' />
    <!-- Custom CSS -->
    <link href="/static/css/style.css" rel='stylesheet' type='text/css' />
    <!-- font CSS -->
    <!-- font-awesome icons -->
    <link href="/static/css/font-awesome.css" rel="stylesheet">
    <!-- //font-awesome icons -->
    <!-- js-->
    <script src="/static/js/main/jquery-1.11.1.min.js"></script>
    <script src="/static/js/main/modernizr.custom.js"></script>
    <!--webfonts-->
    <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
    <!--//webfonts-->
    <!--animate-->
    <link href="/static/css/animate.css" rel="stylesheet" type="text/css" media="all">
    <script src="/static/js/main/wow.min.js"></script>
    <script>
        new WOW().init();
    </script>
    <!--//end-animate-->
    <!-- chart -->
    <script src="/static/js/main/Chart.js"></script>
    <!-- //chart -->

    <!--End Calender-->
    <!-- 动态菜单js-->
    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>
    <script src="/static/js/main/metisMenu.min.js"></script>
    <script src="/static/js/main/custom.js"></script>
    <link href="/static/css/custom.css" rel="stylesheet">
    <script>
        function sendMenuUrl(a) {
            var url = $(a).data("url");
            //如果当前页不是主页name就移除主页内容
            if(url!="main"){
                $("#mainpage").empty();
                $("#mainpage").css("display", "none");
            }
            //如果容器后有iframe标签那么就移除当前的iframe标签
            if ($("#myContainer + iframe")) {
                $("#myContainer + iframe").remove();
            }

            $("#myContainer").after('<iframe id="myIframe" src="' + url + '" width="100%" frameborder=0></iframe>');
            //
            $("#myIframe").prop("height", ($(document).height() - 80) + "px");
           // $("#myIframe").cssClass("marginTop","10px");
//            var ifm= document.getElementById("myIframe");
//
//            ifm.height=document.documentElement.clientHeight;

        }
    </script>
    <!--//Metis Menu -->
</head>
<body class="cbp-spmenu-push" >
<div class="main-content">
    <!--left-fixed -navigation-->
    <div class=" sidebar" role="navigation">
        <div class="navbar-collapse">
            <nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1">
                <ul class="nav" id="side-menu">
                    <shiro:hasAnyRoles name="HRMGR,DEPTMGR,MASTER">
                    <li>
                        <a href="#"><i class="fa fa fa-cogs nav_icon"></i>系统管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <shiro:hasRole name="HRMGR">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="employee"> 员工管理</a></li>
                            </shiro:hasRole>
                            <shiro:hasRole name="DEPTMGR">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="department"> 部门管理</a></li>
                            </shiro:hasRole>
                            <shiro:hasRole name="MASTER">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="permission"> 权限管理</a></li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="role"> 系统角色管理</a></li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="systemDictionary"> 数据字典</a></li>

                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="systemlog"> 系统日志</a></li>
                            </shiro:hasRole>
                        </ul>
                        <!-- //nav-second-level -->
                    </li>
                    </shiro:hasAnyRoles>

                    <li>
                        <a href="#"><i class="fa fa-user nav_icon"></i>客户服务<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="client"> 潜在学员管理</a></li>
                            <shiro:hasAnyRoles name="MARKMGR,MARK,MASTER">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="clienttrace"> 学员跟踪</a></li>
                            </shiro:hasAnyRoles>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="clientpool"> 潜在客户池</a></li>
                            <shiro:hasAnyRoles name="MARKMGR,MARK,MASTER">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="transferHistory"> 移交历史</a></li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="bigcustomer"> 大客户</a></li>

                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="schoolcontact">学校联系人</a></li>
                            </shiro:hasAnyRoles>
                            <shiro:hasRole name="TEACH">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="test">考试管理</a></li>
                            </shiro:hasRole>
                        </ul>
                        <!-- //nav-second-level -->
                    </li>
                        <shiro:hasAnyRoles name="CLZMGR,TEACH,MASTER">
                        <li>
                        <a href="#"><i class="fa fa-book nav_icon"></i>学员管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="formalStudent"> 正式学员管理</a></li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="tuitionIncome"> 收款管理</a></li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="leavingStudent"> 学员退学</a></li>
                                </ul>
                        <!-- //nav-second-level -->
                    </li>
                        </shiro:hasAnyRoles>
                        <shiro:hasRole name="MASTER">
                    <li>
                        <a href="#"><i class="fa fa fa-align-left nav_icon"></i>报表 <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="studentChart"> 学员缴费报表</a></li>
                        </ul>
                        <!-- /nav-second-level -->
                    </li>
                        </shiro:hasRole>
                    <li class="studentChart">
                        <a href="#"><i class="fa fa-calendar nav_icon"></i>计划<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="calendar"> 日程安排</a></li>
                        </ul>
                        <!-- /nav-second-level -->
                    </li>

                    <shiro:hasAnyRoles name="CLZMGR,TEACH,MASTER">
                    <li>
                        <a href="#"><i class="fa fa-users nav_icon"></i>教务管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">

                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="classgrade"> 班级管理</a></li>
                            <li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="schedule"> 课程管理</a></li>
                            <li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="classroom"> 教室管理</a></li>
                            <li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="expenseBook"> 支出管理</a></li>

                        </ul>
                        <!-- //nav-second-level -->
                    </li>
                    </shiro:hasAnyRoles>
                    <li>
                        <a href="#"><i class="fa fa-file-text-o nav_icon"></i>日常办公<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <shiro:hasRole name="CLZMGR">
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="salary"> 工资管理</a></li>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="attendance"> 考勤管理</a></li>
                            </shiro:hasRole>
                            <li><a href="javascript:;"  onclick="sendMenuUrl(this)"
                                   data-url="hancloud"> 网络云盘</a></li>
                        </ul>
                        <!-- //nav-second-level -->
                    </li>


                </ul>
                <!-- //sidebar-collapse -->
            </nav>
        </div>
    </div>
    <!--left-fixed -navigation-->
    <!-- header-starts -->
    <div class="sticky-header header-section ">
        <div class="header-left">
            <!--toggle button start-->
            <button id="showLeftPush"><i class="fa fa-bars"></i></button>
            <!--toggle button end-->
            <!--logo -->
            <div class="logo">
                <a href="main">
                    <h1>/////////////</h1>
                    <span>AdminPanel</span>
                </a>
            </div>
            <div class="logo" style="float: left;height: 77px;padding-top: 20px">
                    <h3>五道口男子职业技术学院欢迎您!!</h3>
                    <span>我用双手成就你的梦想!</span>
            </div>
            <!--//logo-->
            <div class="clearfix"> </div>
        </div>
        <div class="header-right">
            <div class="profile_details_left"><!--notifications of menu start -->
                <ul class="nofitications-dropdown">


                    <li class="dropdown head-dpdn">
                        <%--<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">--%>
                            <%--<i class="fa fa-tasks"></i>--%>
                            <%--<span class="badge blue1">15</span>--%>
                        <%--</a>--%>
                            <iframe width="100%" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=3&site=12"></iframe>
                    </li>
                </ul>
                <div class="clearfix"> </div>
            </div>
            <!--notification menu end -->
            <div class="profile_details">
                <ul>
                    <li class="dropdown profile_details_drop">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <div class="profile_img">
                                <span class="prfil-img"><img src="images/a.png" alt=""> </span>
                                <div class="user-name">
                                    <p><shiro:principal property="username"></shiro:principal> </p>
                                    <span>Administrator</span>
                                </div>
                                <i class="fa fa-angle-down lnr"></i>
                                <i class="fa fa-angle-up lnr"></i>
                                <div class="clearfix"></div>
                            </div>
                        </a>
                        <ul class="dropdown-menu drp-mnu">
                            <li> <a href="#"><i class="fa fa-cog"></i> Settings</a> </li>
                            <li> <a href="#"><i class="fa fa-user"></i> Profile</a> </li>
                            <li> <a href="/logout"><i class="fa fa-sign-out"></i> Logout</a> </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div class="clearfix"> </div>
        </div>
        <div class="clearfix"> </div>
    </div>
    <!-- //header-ends -->
    <!-- 主页开始-->

        <div id="page-wrapper" style="padding-top:88px;padding-left: 25px">
            <div id="myContainer" fit="true">
                <jsp:include page="index.jsp"/>
            </div>
         </div>
    <%--主页结束--%>
<!--footer-->
<div class="footer" style="height: 10px;">
    <p>Copyright &copy; 2018.Company name All rights reserved</p>
</div>
<!--//footer-->
</div>
<!-- Classie -->
<script src="/static/js/main/classie.js"></script>
<script>
    var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
        showLeftPush = document.getElementById( 'showLeftPush' ),
        body = document.body;

    showLeftPush.onclick = function() {
        classie.toggle( this, 'active' );
        classie.toggle( body, 'cbp-spmenu-push-toright' );
        classie.toggle( menuLeft, 'cbp-spmenu-open' );
        disableOther( 'showLeftPush' );
    };


    function disableOther( button ) {
        if( button !== 'showLeftPush' ) {
            classie.toggle( showLeftPush, 'disabled' );
        }
    }
</script>
<!--scrolling js-->
<script src="/static/js/main/jquery.nicescroll.js"></script>
<script src="/static/js/main/scripts.js"></script>
<!--//scrolling js-->
<!-- Bootstrap Core JavaScript -->
<script src="/static/js/main/bootstrap.js"> </script>
</body>
</html>
